<TITLE>{maintitle}</TITLE>
<table width="98%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="5" style="padding-left:10px "></td>
  </tr>
  <tr>
    <td style="padding-left:10px "><span class="text-default"><strong>{Products}</strong></span></td>
  </tr>
</table>
<table width="98%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  class="text-default">&nbsp;</td>
  </tr>
</table>
<table width="98%" border="0"  cellpadding="0" cellspacing="1" class="tableF">
    <form name="frmmain" method="POST" action="{S_ACTION}">
 <tr>
     <td width="27" height="35" align="right" valign="bottom"><img src="images/select_arrow.gif" width="17" height="25" border="0"></td>
     <td colspan="2" valign="top" class="lMenu">Select  <a href="javascript:void(0)" onClick="check_All(true)" class="lMenu">
       <input name="chkCOm1" type="checkbox" id="chkCOm1" value="checkbox" onClick="check_All(true)">
       Select All</a> |
	<a href="javascript:void(0)" onClick="check_All(false)" class="lMenu"> Clear All  </a>    </td>
     <td valign="top" nowrap class="lMenu">
	 <input type="button" name="Button"  value=" " id="contact" onClick="Addcart('Contact')" style="cursor:hand">
    <input type="button" name="Button" value=" "  id="addbasket" onClick="Addcart('addToCard')" style="cursor:hand"></td>
 </tr>
	<input type="hidden" name="type" value="addToCard">
	<input type="hidden" name="chkSes" value="1">
	<input type="hidden" name="oldurl" value="{oldurl}">
   <!-- BEGIN productList -->
    <tr>
     <td height="5" align="center" class="text-default"></td>
     <td width="80" class="text-default"></td>
     <td width="491" valign="top" class="lMenu"></td>
    
     <td valign="top" class="lMenu"></td>
    </tr>
  <tr>
    <td width="27" align="right" valign="top" class="text-default"><p>{productList.CHECKBOX}</p>
      <p>&nbsp;</p></td>
    <td width="130" align="center" valign="top" class="text-default">{productList.photo} </td>
  <td colspan="2" valign="top" class="text-default"> {productList.pname} <br>
    {productList.model}    <br>    <br>   
    <div align="left" style="padding-right:50px">
    {productList.pdetail}</div> </td>
  </tr>
   <tr>
     <td height="5" align="center" class="text-default"></td>
     <td class="text-default"></td>
     <td valign="top" class="lMenu"></td>
      
     <td valign="top" class="lMenu"></td>
   </tr>
  <tr>
     <td height="1" colspan="4" align="center" bgcolor="#CCCCCC"></td>
  </tr>
   <!-- END productList -->
   <tr>
     <td width="27" height="40" align="right" valign="bottom">&nbsp; </td>
     <td colspan="2" valign="middle" class="lMenu">Select  <a href="javascript:void(0)" onClick="check_All(true)" class="lMenu">
       <input name="chkCOm" type="checkbox" id="chkCOm" value="checkbox" onClick="check_All(true)">
       Select All</a> |
	<a href="javascript:void(0)" onClick="check_All(false)" class="lMenu"> Clear All  </a> 	  </td>
     <td valign="middle" nowrap class="lMenu">&nbsp;
       <input type="button" name="Button"  value=" " id="contact" onClick="Addcart('Contact')" style="cursor:hand">
    <input type="button" name="Button" value=" "  id="addbasket" onClick="Addcart('addToCard')" style="cursor:hand"></td>
   </tr>
  </form>  
</table>
<table width="98%" border="0"  cellpadding="0" cellspacing="0" class="tableF">
<tr style="display:{navidis}"><form name="frmPage" action="{g_action}" method="post">
    <td height="21" align="center" bgcolor="#E7E7E7" class="text-default" style="border-bottom: solid 1px #CCCCCC"> &nbsp;{NAVIGATOR}</td>
    <td align="right" valign="middle" bgcolor="#E7E7E7" class="text-default" style="border-bottom: solid 1px #CCCCCC">
	Go to page : 
    <input name="txtgoto" type="text" id="txtgoto" size="5" maxlength="5">&nbsp;
	<input type="submit" name="Submit" value="Go">&nbsp;
	</td>
	</form>
</tr>
</table>

  <form name="frmCont" method="POST" action="index.php?/contact/{supp}">
  <input type="hidden" name="type" value="Contact">
  <input type="hidden" name="suppli" value="{supp}">
  </form>
  

<script language="javascript">
	
	var the_form	= window.document.frmmain;
	
	function Addcart(act){
		if(selected_item()){
		the_form.action="{a_action}"
		if(act=='Contact'){
			the_form.chkSes.value=1
			the_form.target ="_blank"
		}else{
			the_form.chkSes.value=0
			the_form.target ="_blank"
		}
		the_form.type.value=act		
		the_form.submit()
		}
	}
	function check_All(status) {
		for (i = 0; i < the_form.length; i++) {
			the_form.elements[i].checked = status;
		}
	}
	
	function delete_list(the_url) {
		if (selected_item()){
			question = confirm("Are you sure to delete?")
			if (question != "0"){
				the_form.action = the_url;
				the_form.submit();
			}
		}
	}
	function selected_item(){
		var name_count = the_form.length;
	
		for (i=0;i<name_count;i++){
			if (the_form.elements[i].checked){
				return true;
			}
		}
		
		alert('Please! choose a product');
		return false;
	}
	function openwin(url,w_title,width,height){
		var maxw = window.screen.availWidth;
		var maxh = window.screen.availHeight;
		var win = window.open(url,w_title,'screenX=0,screenY=0,left='+((maxw-width)/2)+',top=0,width=' + width + ',height=' + height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
		win.focus();
}
</script>